package com.example.myapplication.kotlin

import android.widget.Button

fun main() {
    val test = test1()
    with (test){
        name = "test2"
        age = 2
        t1(1)
    }
    val test2 = test.let {
        it.name = "test3"
        it.age = 3
        it.t1(2)

    }



}


class test1{
    var name:String = "test1"
    var age:Int = 1
    var num:Int? = null
    lateinit var num1: Button
    fun t1(num: Int){
        println("ssss$num {${this.age} ${this.name}}")
    }

}